
using System;
using System.Linq;
using Csla;
using Csla.Data;
using Csla.Security;
using Csla.Validation;

namespace HousingInfo.Library
{ 
	public partial class TextHouseBO : Csla.BusinessBase<TextHouseBO>
	{

		#region Authorization Rules
		protected override void AddAuthorizationRules()
		{
			//TODO: Define authorization rules in TextHouseBO
			//AuthorizationRules.AllowRead(TextHouseIDProperty, "TextHouseBOReadGroup");
			//AuthorizationRules.AllowRead(UrlDownloadProperty, "TextHouseBOReadGroup");
			//AuthorizationRules.AllowRead(CreatedDateProperty, "TextHouseBOReadGroup");
			//AuthorizationRules.AllowRead(TitleProperty, "TextHouseBOReadGroup");
			//AuthorizationRules.AllowRead(ViewCountProperty, "TextHouseBOReadGroup");
			//AuthorizationRules.AllowRead(DownloadCountProperty, "TextHouseBOReadGroup");

			//AuthorizationRules.AllowWrite(UrlDownloadProperty, "TextHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(CreatedDateProperty, "TextHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(TitleProperty, "TextHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(ViewCountProperty, "TextHouseBOWriteGroup");
			//AuthorizationRules.AllowWrite(DownloadCountProperty, "TextHouseBOWriteGroup");
		}

		protected static void AddObjectAuthorizationRules()
		{
			//TODO: Define object-level authorization rules of TextHouseBO
			//AuthorizationRules.AllowCreate(typeof(TextHouseBO), "TextHouseBOCreateGroup"));
			//AuthorizationRules.AllowEdit(typeof(TextHouseBO), "TextHouseBOEditGroup"));
			//AuthorizationRules.AllowDelete(typeof(TextHouseBO), "TextHouseBODeleteGroup"));
		}
		#endregion //Authorization Rules
		private void AssignParentKey(HousingInfo.DataLinQ.TextHouse data)
		{
			 //data.ParentId = ReadProperty<ParentBO>(ParentBOProperty).Id;
		}

	}
}
